/*
 *  $Id: DesolatedGrove.cs 1067 2010-05-21 11:00:43Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Darkness.Lands {
    public class DesolatedGrove: LandCard {
        public DesolatedGrove(): base("001_d_l_desolated_grove") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Darkness;
            Value = 100;
            AddManaCost(ElementType.Darkness, 3);
        }
        public override void SetNaturalAffects(ICollector<Affect> affects) {
            affects.Add(new Affects.ManaIncome(ElementType.Darkness, 3));
            affects.Add<DesolatedGroveAura>();
        }

        private class DesolatedGroveAura: DefenceAuraAffect {
            public override string Id {
                get { return AffectManager.GetCardId<DesolatedGrove>("aura"); }
            }

            protected override Affect CreateSubAffect() {
                return new DesolatedGroveAffect();
            }
        }

        private class DesolatedGroveAffect: SpellAffect<DesolatedGrove> {
            public DesolatedGroveAffect() {
                Add(new Affects.FearAura(2));
            }
        }
    }
}
